
import request from '@/utils/request';

// 查询列表
export async function queryInnerFiles(params) {
  return request('/b/ftpsetting/queryPageList ', {
    method: 'POST',
    data: params,
  });
}
// 新增
export async function addInnerFiles(params) {
  return request('/b/ftpsetting/add', {
    method: 'POST',
    data: params,
  });
}

// 删除
export async function removeInnerFiles(params) {
  return request('/b/ftpsetting/delete', {
    method: 'POST',
    data: params,
  });
}


// 批量删除
export async function removeAllInnerFiles(params) {
  return request('/b/ftpsetting/batchDelete', {
    method: 'POST',
    data: params,
  });
}

// 修改
export async function updateInnerFiles(params) {
  return request('/b/ftpsetting/update', {
    method: 'POST',
    data: params,
    /*data: {
      ...params.body,
      method: 'update',
    },*/
  });
}


// 查询配置列表
export async function queryListFiles(params) {
  return request('/b/ftpsetting/queryList', {
    method: 'POST',
    data: params,
  });
}

//测试连接
export async function connectTest(params) {
  return request('/b/ftpsetting/connectTest', {
    method: 'POST',
    data: params,
  });
}

// 语言编码
export async function queryUnicodeList(params) {
  return request('/s/datadict/queryListByTypeCode', {
    method: 'POST',
    data: params,
  });
}
